﻿
<?php
	$codigo_assunto = isset($_GET['assunto'])? trim($_GET['assunto']):null;
	$codigo_assunto = base64_decode($codigo_assunto);
	$categoria = isset($_GET['categoria'])? trim($_GET['categoria']):null;
	$men = isset($_GET['men'])? trim($_GET['men']):null;
	//include_once ("funcao/conexaoBanco.php");
	?>
<!DOCTYPE html>
<html>
    <head>
    	
        <title>Tiberiogeo - A Geografia levada a Sério</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/bootstrap.css" rel="stylesheet"/>
        <link href="css/bootmagz_main.css" rel="stylesheet"/>
        <link rel="stylesheet" type="text/css" href="table/css/DT_bootstrap.css">
        <link rel="stylesheet" href="validation/css/validationEngine.jquery.css" type="text/css"/>
        <link rel="stylesheet" href="pagi/css/style.css" type="text/css"/>
        <link rel="stylesheet" href="prettyPhoto/css/prettyPhoto.css" type="text/css" />
        <style type="text/css">
@import "abc/jquery.realperson.css";
label { display: inline-block; width: 20%; }
.realperson-challenge { display: inline-block }
</style>

        

    </head>
    <body onload="prettyPrint();>
        <!-- Facebook Social Plugin-->
        <div id="fb-root"></div>
        
        <script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)[0];
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
			  fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));
		</script>
        
        <!-- Facebook-->
        <div class="container main">
            <!-- topo-->
            	<?php include_once("topo.php");?>
            <!-- fim do topo-->

            <!-- menu principal -->
           		<?php include_once("menu_principal.php");
				//mysql_set_charset('utf8');?>
            <!-- fim do menu principal -->
            
           	<!--conteudo principal-->
           		<?php
           		//recebendo a variavel
           		$pg = isset($_GET['pg'])? trim($_GET['pg']): null;
				if(empty($pg))
				{	include_once("principal.php");
				}
				else
				{	include(strtolower($pg.'.php'));
				}
				
				?>
				
           	<!-- fim do conteudo principal-->
           	
           	<!-- rodape -->
           		<?php include_once("rodape.php");?>
           	<!-- fim do rodape-->                
                     
        </div>
        <script src="js/jquery-1.7.2.min.js"></script>
        <script src="bootstrap/js/bootstrap.js"></script>
        <script src="tooltip/bootstrap-tooltip.js"></script>
        <script type="text/javascript" charset="utf-8" language="javascript" src="table/js/jquery.dataTables.js"></script>
		<script type="text/javascript" charset="utf-8" language="javascript" src="table/js/DT_bootstrap.js"></script>
		<script src="validation/js/languages/jquery.validationEngine-pt_BR.js"></script>
    	<script src="validation/js/jquery.validationEngine.js"></script>
    	 <script src="pagi/1291523190-jpaginate.js"></script>
    	<script src="abc/jquery.realperson.min.js"></script>
    	<script src="prettyPhoto/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
    	
    	<script type="text/javascript">
            $(document).ready(function(){
                $('.carousel').carousel({
                    interval: 2000
                });
                
                 $("form").validationEngine();
                 $('#defaultReal').realperson();
				 $('.reduzir').each(function(){
				 	if ($(this).text().length > 30){
		                $(this).text($(this).text().substr(0, 800));
		                $(this).append('...');
	                 }
	             });
	             $('.reduzirStringMenor').each(function(){
				 	if ($(this).text().length > 30){
		                $(this).text($(this).text().substr(0, 80));
		                $(this).append('...');
	                 }
	             });
	             
	             
             $('#myTab a').click(function (e) {
				  e.preventDefault();
				  $(this).tab('show');
			 })

            });
            
        </script>
       <!-- script para galeria-->
        <script type="text/javascript" charset="utf-8">
			$(document).ready(function(){
				$("area[rel^='prettyPhoto']").prettyPhoto();
				
				$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: true});
				$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
		
				$("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
					custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
					changepicturecallback: function(){ initialize(); }
				});

				$("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
					custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
					changepicturecallback: function(){ _bsap.exec(); }
				});
			});
			</script>
    </body>
</html>
<?php
	if(!empty($men))
	{	echo "<script> alert('Resultado: $men')</script>";
	}
?>
